package com.hx.vending.util;


import org.apache.http.client.HttpClient;

/**
  *常量类 
 */
public interface Constant {

	// .com/ 分隔符
	public static final String SPLIT_STRING = ".com/";
	
	// http://                      
	public static final String HTTP_STRTING = "http://";
	
	// 分隔符：/
	public static final String BACKSLASH_STRTING = "/";
	
	// 失败标识符
	public static final String FAIL = "fail";


	//////////////////////////////////////////////微信数据微信数据微信数据微信数据//////////////////////////////////////////////////

	//用于切换服务器地址
	public static String WX_IP="star-hi.cn";
//	public static String WX_IP="47.105.150.35";

	//公众号
	public static String AppSecret="b3f45d63864b41bb43d3bcaa91cda4ee";

	//公众号
	public static String APPID="wx2e5781c138160fd1";

	/**
	 * 商户号mch_id
	 */
//	public static final String WX_MCH_ID = "1509042701";//原来Windows上使用的
	public static final String WX_MCH_ID = "1526677431";//linux服务器上的


	public static final String WXPAYSDK_VERSION = "WXPaySDK/3.0.9";
	public static final String USER_AGENT = WXPAYSDK_VERSION +
			" (" + System.getProperty("os.arch") + " " + System.getProperty("os.name") + " " + System.getProperty("os.version") +
			") Java/" + System.getProperty("java.version") + " HttpClient/" + HttpClient.class.getPackage().getImplementationVersion();

	public static final String FIELD_SIGN = "sign";

	//key
	public static final String KEY = "5dbacf06d01eb12b3b4b9c2e063a30c8";

	//币种
	public static final String FEE_TYPE = "CNY";

	//支付方式  扫码
	public static final String TRADE_TYPE_NATIVE = "NATIVE";

	//支付方式  公众号
	public static final String TRADE_TYPE_JSAPI = "JSAPI";

	/**
	 * 统一下单预支付地址
	 */
	public static final String  ORDERURL  = "https://api.mch.weixin.qq.com/pay/unifiedorder";

	/**
	 * 微信预支付异步通知地址
	 */
	public static final String NOTIFY_URL = "http://star-hi.cn/vending/wxpay/WXNativeCallBack";
//	public static final String NOTIFY_URL = "http://47.105.150.35/vending/wxpay/WXNativeCallBack";

	/**
	 * 微信授权登陆重定向地址(客户购买商品Android)
	 */
	public static final String REDIRECT_URL = "http://star-hi.cn/vending/wxpay/wxChatRedirect";
//	public static final String REDIRECT_URL = "http://47.105.150.35/vending/wxpay/wxChatRedirect";

	/**
	 * 微信授权登陆重定向地址(客户购买商品web)
	 */
	public static final String REDIRECT_WEB_URL = "http://star-hi.cn/vending/wxpay/wxChatRedirectWeb";
//	public static final String REDIRECT_WEB_URL = "http://47.105.150.35/vending/wxpay/wxChatRedirectWeb";

	/**
	 * 微信授权登陆重定向地址(商户提现)
	 */
	public static final String REDIRECT_CASH_URL = "http://star-hi.cn/vending/wxpay/wxChatCashRedirect";
//	public static final String REDIRECT_CASH_URL = "http://47.105.150.35/vending/wxpay/wxChatCashRedirect";

	//授权登陆  无需确认
	public static final String SCOPE_SNSAPI_BASE = "snsapi_base";

	//授权登陆  需要确认
	public static final String SCOPE_SNSAPI_USERINFO = "snsapi_userinfo";

	//返回信息语言
	public static final String LANG = "zh_CN";

	//提现到零钱请求地址
	public static final String CASHWITHDRAWAL_URL = "https://api.mch.weixin.qq.com/mmpaymkttransfers/promotion/transfers";

	//微信授权登陆成功重定向的页面地址(客户购买商品Android)
	public static final String REDIRECTURL = "http://star-hi.cn/#/buy/index";
//	public static final String REDIRECTURL = "http://47.105.150.35/#/buy/index";

	//微信授权登陆成功重定向的页面地址(客户购买商品web)
	public static final String REDIRECTWEBURL = "http://www.star-hi.cn/#/buy/sale";
//	public static final String REDIRECTWEBURL = "http://47.105.150.35/#/buy/sale";

	//微信授权登陆成功重定向的页面地址(商户提现)
	public static final String CASHREDIRECTURL = "http://star-hi.cn/#/update_account?accountType=0";
//	public static final String CASHREDIRECTURL = "http://47.105.150.35/#/update_account?accountType=0";

	//申请退款地址
	public static final String REFUNDURL = "https://api.mch.weixin.qq.com/secapi/pay/refund";

	//申请微信提现到零钱地址
	public static final String TRANSFERSURL = "https://api.mch.weixin.qq.com/mmpaymkttransfers/promotion/transfers";

	//查询企业付款地址
	public static final String GETTRANSFERINFO = "https://api.mch.weixin.qq.com/mmpaymkttransfers/gettransferinfo";

	//微信提现到零钱允许的IP地址
//	public static final String TRANSFERSIP = "47.105.150.35";
	public static final String TRANSFERSIP = "47.110.45.194";//linux服务器

	//微信提现到零钱是否校检用户真实姓名
	public static final String TRANSFERSCHECK = "FORCE_CHECK";//校检NO_CHECK不校检

	//mqtt校检文件
//	public static final String RUNNERHEARTBEAT_FILE_PATH = "D:\\apache-tomcat-8.5.34\\key.txt";
	public static final String RUNNERHEARTBEAT_FILE_PATH = "/home/pk/key.txt";

	//mqtt校检
	public static final String RUNNERHEARTBEAT_PRIVATE_KEY = "fff609df9ea3509d776e67b2b03caa06";

	//////////////////////////////////////////////微信数据微信数据微信数据微信数据//////////////////////////////////////////////////
	//////////////////////////////////////////////物联卡流量卡////////////////////////////////////////////////////

	//物联卡指定日期用量日志查询
	public static final String IOTCARD_URL = "https://api.openluat.com/sim/iotcard/usagelog";

	//物联卡月流量日志
	public static final String IOTCARD_MONTHLY_URL = "https://api.openluat.com/sim/iotcard/monthly/usagelog";

	//查询单张物联卡信息
	public static final String IOTCARD_CARD = "https://api.openluat.com/sim/iotcard/card";

	//获取计费组列表
	public static final String IOTCARD_BILLING_GROUP = "https://api.openluat.com/sim/iotcard/billing_group";

	//计费组物联卡列表
	public static final String IOTCARD_CARDLIST = "https://api.openluat.com/sim/iotcard/cardlist";

	//appkey
	public static final String IOTCARD_APPKEY = "3Ej9RY6SLk1iGoTl";

	//appsecret
	public static final String IOTCARD_APPSECRET = "yK2f0CHiTY8SY3OEcKnC7hYIE3gKSGf6sUn5GHxbR2iVxUBN6JClCX9mhL8T1ben";

	//base64加密后的auto
	//public static final String IOT_AUTHORIZATION = "M0VqOVJZNlNMazFpR29UbDp5SzJmMENIaVRZOFNZM09FY0tuQzdoWUlFM2dLU0dmNnNVbjVHSHhiUjJpVnhVQk42SkNsQ1g5bWhMOFQxYmVu";

	//////////////////////////////////////////////物联卡流量卡////////////////////////////////////////////////////
}